<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	var base = "${base}/";
</script>
<!--框架必需-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery-1.7.1.js"></script>
<script type="text/javascript" src="${base}/scripts/framework.js"></script>
<link href="${base}/css/import_basic.css" rel="stylesheet" type="text/css" />
<link href="${base}/css/sky/style.css" rel="stylesheet" type="text/css" />
<!--时间控件-->
<script src="${base}/scripts/form/datePicker/WdatePicker.js" type="text/javascript"></script>
<!--表单验证脚本-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="${base}/js/verify-goods-add.js"></script>
</head>
<body>
	<div class="position">
		<div class="center">
			<div class="left">
				<div class="right">
					<span>当前位置：商品管理 >> 修改商品</span>
				</div>
			</div>
		</div>
	</div>
	<div class="box1" whiteBg="true">
		<form action="${base}/admin/goods/update.action" id="add_goods_form" target="goods_right">
			<table class="tableStyle" transMode="true">
				<input type="hidden" name="goodsInfo.id" id="goodsInfo_id" value="${(goodsInfo.id)!''}"/>
				<tr>
					<td>商品编号：</td>
					<td>
						<input type="text" value="${(goodsInfo.goodsNo)!''}" name="goodsInfo.goodsNo" class="text_style" id="goodsInof.goodsNo" />
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>商品名称：</td>
					<td>
						<input type="text" value="${(goodsInfo.goodsName)!''}" name="goodsInfo.goodsName" class="text_style" id="goodsInfo.goodsName"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>商品单位：</td>
					<td><select name="goodsInfo.unitType">
							<option value="盒">盒</option>
							<option value="支">支</option>
							<option value="瓶">瓶</option>
							<option value="份">份</option>
					</select></td>
				</tr>
				<tr>
					<td>商品规格：</td>
					<td>
						<input type="text" value="${(goodsInfo.specification)!''}" name="goodsInfo.specification" class="text_style"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>销售价格：</td>
					<td>
						<input type="text" value="${(goodsInfo.unitPrice)!''}" name="goodsInfo.unitPrice" class="text_style"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>库存量：</td>
					<td>
						<input type="text" value="${(goodsInfo.stock)!''}" name="goodsInfo.stock" class="text_style"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>可订购量：</td>
					<td>
						<input type="text" value="${(goodsInfo.enableStock)!''}" name="goodsInfo.enableStock" class="text_style"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>销售状态：</td>
					<td>
						<select name="goodsInfo.saleStatus">
							<#if goodsInfo.saleStatus =0>
							<option value="0" selected="selected">可销售</option>
							<option value="1">不可销售</option>
							<#else>
							<option value="0">可销售</option>
							<option value="1" selected="selected">不可销售</option>
							</#if>
						</select>
					</td>
				</tr>
				<tr>
					<td>商品类别：</td>
					<td>
						<select name="goodsInfo.goodsCategoryId">
							<#if goodsCategoryList??>
							<#list goodsCategoryList as category>
								<#if goodsInfo.goodsCategoryId = category.id>
									<option value="${(category.id)!0}" selected="selected">${(category.categoryName)!''}</option>
								<#else>
									<option value="${(category.id)!0}">${(category.categoryName)!''}</option>
								</#if>
							</#list>
							</#if>
						</select>
					</td>
				</tr>
				<tr>
					<td>有效期：</td>
					<td>
						<input type="text" style="width:150px;" value="${(goodsInfo.expireDate?string('yyyy-MM-dd HH:mm:ss'))!''}" name="goodsInfo.expireDate" class="date text_style" dateFmt="yyyy-MM-dd HH:mm:ss" />
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="submit" class="button" value="提 交 " />
						<input type="button" class="button" onclick="top.Dialog.close()" value="取消" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>